<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
<head>
    <div th:replace="admin/head :: head"></div>
    <title>welcome</title>
</head>
<body>
<div class="x-body layui-anim layui-anim-up">
    <blockquote class="layui-elem-quote">欢迎管理员：
        <span class="x-red" sec:authentication="name"></span>
    </blockquote>
    <fieldset class="layui-elem-field">
        <legend>数据统计</legend>
        <div class="layui-field-box">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-body">
                        <div class="layui-carousel x-admin-carousel x-admin-backlog" lay-anim="" lay-indicator="inside"
                             lay-arrow="none" style="width: 100%; height: 90px;">
                            <div carousel-item="">
                                <ul class="layui-row layui-col-space10 layui-this">
                                    <li class="layui-col-xs2">
                                        <a th:href="@{/admin/user}" class="x-admin-backlog-body">
                                            <h3>用户数量</h3>
                                            <p>
                                                <cite th:text="${statistics.userCount}"></cite></p>
                                        </a>
                                    </li>
                                    <li class="layui-col-xs2">
                                        <a href="javascript:;" class="x-admin-backlog-body">
                                            <h3>摄影师数量</h3>
                                            <p>
                                                <cite th:text="${statistics.photographerCount}"></cite></p>
                                        </a>
                                    </li>
                                    <li class="layui-col-xs2">
                                        <a href="javascript:;" class="x-admin-backlog-body">
                                            <h3>编剧数量</h3>
                                            <p>
                                                <cite th:text="${statistics.scriptwriterCount}"></cite></p>
                                        </a>
                                    </li>
                                    <li class="layui-col-xs2">
                                        <a th:href="@{/admin/video}" class="x-admin-backlog-body">
                                            <h3>作品数量</h3>
                                            <p>
                                                <cite th:text="${statistics.videoCount}"></cite></p>
                                        </a>
                                    </li>
                                    <li class="layui-col-xs2">
                                        <a href="javascript:;" class="x-admin-backlog-body">
                                            <h3>工作简历</h3>
                                            <p>
                                                <cite th:text="${statistics.workCount}"></cite></p>
                                        </a>
                                    </li>
                                    <li class="layui-col-xs2">
                                        <a href="javascript:;" class="x-admin-backlog-body">
                                            <h3>婚恋简历</h3>
                                            <p>
                                                <cite th:text="${statistics.loveCount}"></cite></p>
                                        </a>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </fieldset>
    <fieldset class="layui-elem-field">
        <legend>系统通知</legend>
        <div class="layui-field-box">
            <table class="layui-table" lay-skin="line">
                <tbody>
                <tr>
                    <td>
                        <a class="x-a" href="/" target="_blank">x-admin 2.0</a>
                    </td>
                </tr>
                <tr>
                    <td>
                        <a class="x-a" href="/" target="_blank" sec:authentication="name"></a>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
    </fieldset>
    <fieldset class="layui-elem-field">
        <legend>系统信息</legend>
        <div class="layui-field-box">
            <table class="layui-table">
                <tbody>
                <tr>
                    <th>admin版本</th>
                    <td>1.0</td>
                </tr>
                <tr>
                    <th>服务器地址</th>
                    <td th:text="${#request.getAttribute('ctx')}"></td>
                </tr>
                <tr>
                    <th>服务器IP</th>
                    <td th:text="${statistics.localhostIP}"></td>
                </tr>
                <tr>
                    <th>操作系统</th>
                    <td></td>
                </tr>
                <tr>
                    <th>运行环境</th>
                    <td></td>
                </tr>
                <tr>
                    <th>MYSQL版本</th>
                    <td>5.6</td>
                </tr>
                <tr>
                    <th>上传附件限制</th>
                    <td>10M</td>
                </tr>
                <tr>
                    <th>执行时间限制</th>
                    <td>无限制</td>
                </tr>
                <tr>
                    <th>剩余空间</th>
                    <td></td>
                </tr>
                </tbody>
            </table>
        </div>
    </fieldset>
    <fieldset class="layui-elem-field">
        <legend>开发团队</legend>
        <div class="layui-field-box">
            <table class="layui-table">
                <tbody>
                <tr>
                    <th>版权所有</th>
                    <td>x-admin</td>
                </tr>
                <tr style="display: none;">
                    <th>开发者</th>
                    <td>马志斌(113664000@qq.com)</td>
                </tr>
                </tbody>
            </table>
        </div>
    </fieldset>
    <blockquote class="layui-elem-quote layui-quote-nm">感谢layui,百度Echarts,jquery,本系统由x-admin提供技术支持。</blockquote>
</div>
</body>
</html>